package com.member.shop.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import com.member.common.core.domain.SingleBaseEntity;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.experimental.SuperBuilder;

/**
 * 用户设备对象 sys_biz_user_device
 *
 * @author lixinchen
 * @date 2024-10-28
 */
@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_biz_user_device")
public class SysBizUserDevice extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 发动机编号
     */
    @Excel(name = "发动机编号")
    private String engineNo;

    /**
     * 产品图片(封面)
     */
    @Excel(name = "产品图片(封面)")
    private String productCover;

    /**
     * 付款凭证
     */
    @Excel(name = "付款凭证")
    private String payCertificate;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private Long orderId;
    /**
     * 订单类型（0：线下订单  1：商城订单）
     */
    @Excel(name = "订单类型")
    private Long orderType;
    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private Long productId;

    /**
     * 归属经销商id
     */
    @Excel(name = "归属经销商id")
    private Long belongDealerId;

    /**
     * 归属店铺id
     */
    @Excel(name = "归属店铺id")
    private Long belongShopId;

    /**
     * 审核状态( 0: 待审核 1：审核通过 2：审核不通过)
     */
    @Excel(name = "审核状态( 0: 待审核 1：审核通过 2：审核不通过)")
    private Integer auditStatus;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;

    /**
     * 审核原因
     */
    @Excel(name = "审核原因")
    private String auditReason;

    /**
     * 审核人
     */
    @Excel(name = "审核人")
    private Long auditor;

}
